package top.fzqblog.music.adapter;

import android.support.annotation.Nullable;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.fzqblog.music.R;
import top.fzqblog.music.model.Song;
/**
 * Created by 抽离 on 2017/10/20 0020.
 */

/**
 * 使用
 */
public class MusicListAdapter  extends BaseQuickAdapter<Song, BaseViewHolder> {

    public MusicListAdapter(int layoutResId, @Nullable List<Song> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Song song) {
        baseViewHolder.setText(R.id.musicName, song.getSong());
        baseViewHolder.setText(R.id.musicSinger, song.getSinger());
    }
}
